package com.treeste;

import java.util.HashMap;
import java.util.HashSet;

public class TestStudent03 {
    public static void main(String[] args) {
        HashMap<Student03, String> ha = new HashMap<>();
        Student03 s1 = new Student03("xiaohua", 24);
        Student03 s2 = new Student03("lisi", 22);
        Student03 s3 = new Student03("zhangnang", 21);
        ha.put(s1, "长沙");
        ha.put(s2, "广州");
        ha.put(s3, "北京");

        ha.forEach(
                (Student03 ste, String vat) -> {
                    System.out.println(ste + "---" + vat);
                }
        );
    }
}
